home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší České Hry / Nej české hry.iso / hry / vesmirna becherovka / 2004 Vesmírná Becherovka / Becherovka.exe / scripts / DefineButton2_1080 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2004-09-30  |  1.7 KB  |  52 lines

  1. on(release){
  2.    if(_root.s.Control and !copy)
  3.    {
  4.       _root.s.HideSipka();
  5.       this._visible = false;
  6.       this.duplicateMovieClip("DObject",13300);
  7.       _root.s.DObject.swapDepths(0);
  8.       _root.s.DObject.gotoAndStop("pick");
  9.       _root.s.DObject.copy = true;
  10.       _root.s.DObject.origin = this;
  11.       startDrag(_root.s.DObject,0);
  12.    }
  13.    if(copy)
  14.    {
  15.       stopDrag();
  16.       if(eval(this._droptarget) != undefined and eval(this._droptarget) == _root.s.Back1.Dekl)
  17.       {
  18.          _root.s.what = _root.s.hero.name;
  19.          _root.s.uses = "sroubovak";
  20.          _root.s.cil = "s1_dekl";
  21.          _root.s.HideObj();
  22.          _root.s.hero.gotoAndPlay("navrat");
  23.       }
  24.       if(eval(this._droptarget) != undefined and eval(this._droptarget) == _root.s.back2.back2.Dekl and !_root.pDekl)
  25.       {
  26.          _root.s.gotoAndStop("s4_26");
  27.       }
  28.       if(eval(this._droptarget) != undefined and eval(this._droptarget) == _root.s.back4.vysavac.vysavac and !_root.vysavacOpen)
  29.       {
  30.          _root.s.gotoAndStop("s4_63");
  31.       }
  32.       if(eval(this._droptarget) != undefined and eval(this._droptarget) == _root.s.back5.chram and !_root.propadl)
  33.       {
  34.          _root.s.what = _root.s.hero.name;
  35.          _root.s.cil = "s7_chram";
  36.          _root.s.uses = "sroubovak";
  37.          _root.s.HideObj();
  38.          _root.s.hero.gotoAndPlay("navrat");
  39.       }
  40.       if(eval(this._droptarget) != undefined and eval(this._droptarget) == _root.s.back4.cripio)
  41.       {
  42.          _root.s.uses = "sroubovak";
  43.          _root.s.gotoAndStop("s7_cripio");
  44.       }
  45.       trace(eval(this._droptarget));
  46.       this._visible = false;
  47.       origin._visible = true;
  48.       _root.s.ShowSipka();
  49.       _root.s.DObject.removeMovieClip();
  50.    }
  51. }
  52.